﻿using HotelManager.DAL;

namespace HotelManager.BLL
{
    public  class StatisticsManager
    {
        private readonly IStatisticsService _statisticsService;

        public StatisticsManager(IStatisticsService statisticsService)
        {
            _statisticsService = statisticsService;
        }

        /// <summary>
        /// 查询每月房款收入
        /// </summary>
        /// <returns></returns>
        public  double[] GetMoney(int year)
        {
            return _statisticsService.GetMoney(year);
        }


        /// <summary>
        /// 查询每月餐饮收入
        /// </summary>
        /// <param name="year"></param>
        /// <returns></returns>
        public  double[] GetDishPrice(int year)
        {
            return _statisticsService.GetDishPrice(year);
        }


         /// <summary>
        /// 查询年度房款总收入
        /// </summary>
        /// <param name="year"></param>
        /// <returns></returns>
        public  double SumTotalMoney(int year)
        {
            return _statisticsService.SumTotalMoney(year);
        }

        /// <summary>
        /// 查询年度餐饮总收入
        /// </summary>
        /// <param name="year"></param>
        /// <returns></returns>
        public  double SumDishMoney(int year)
        {
            return _statisticsService.SumDishMoney(year);
        }
    }
}
